﻿using System;
using System.Collections.Generic;
using System.Text;

namespace CQRSFramework.Common.IO
{
    public class AsyncTaskResult
    {
        public static readonly AsyncTaskResult Success;
        public AsyncTaskStatus Status;
        public string ErrorMessage;
        public AsyncTaskResult(AsyncTaskStatus status, string errorMessage)
        {
            Status = status;
            ErrorMessage = errorMessage;
        }
    }
    public enum AsyncTaskStatus
    {
        Success = 0,
        IOException = 1,
        Failed = 2
    }
}
